//
//  WriteXML.c
//  MKV Metadata Editor
//
//  Created by Marcus Johnson on 11/20/12.
//  Copyright (c) 2012 BumbleBritches57. All rights reserved.
//

#include <stdio.h>


- (BOOL);writeToFile:(NSString *)fileName ofType:(NSString *)type {
    
    NSData *xmlData = [xmlDoc XMLDataWithOptions:NSXMLNodePrettyPrint];
    if (![xmlData writeToFile:fileName atomically:YES]) {
        NSBeep();
        NSLog(@"Could not write document out...");
        return NO;
    }
    return YES;
}
